package com.corpgovernment.organization.service;

import com.corpgovernment.common.base.BaseUserInfo;
import com.corpgovernment.organization.Bo.SyncEmployeeInfoBo;
import com.corpgovernment.organization.entity.SyncEmployeeCallBackRequestEntity;
import com.corpgovernment.organization.entity.db.MbOrgEmployeeInfo;
import com.corpgovernment.organization.entity.db.MbOrgUserIdcard;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ISyncEmployeeNewService {

    void syncEmployeeInfo(List<SyncEmployeeInfoBo> empList, BaseUserInfo baseUserInfo, String defaultOrgId,
                          String fileName, String fileUrl ,
                          List<SyncEmployeeCallBackRequestEntity.FailInfo> failInfoList, int totalCount,String syncTpye,Boolean checkOrgChange);

    /**
     * 按组织id查询并且整合需要下载的员工信息
     * @param orgId
     */
    List<MbOrgEmployeeInfo> findDownloadEmployeeInfo(List<String> orgId);

    List<MbOrgUserIdcard> findOrgUserIdCard(List<String> uids);

    List<MbOrgEmployeeInfo> findDownloadOrgsEmployeeInfo(List<String> orgIds);

    <PREINSERT> void handleEmployImport(MultipartFile file, BaseUserInfo baseUserInfo, String defaultOrgId, String syncTpye,Boolean checkOrgChange) throws Exception;
}